package com.cxd.sms.service;

import java.util.Map;

import com.cxd.app.entity.base.SmsInfoBase;
import com.cxd.app.entity.base.UserMessageTemplateBase;
import com.cxd.base.common.exception.SmsSendErrorException;


/**
 * 发短信
 * 返回信息详见文档。
 * @author Administrator
 * 
 */
public abstract class SmsService {

	/**
	 * 发送短信
	 * @param content
	 * @param mobileNumber
	 * @throws SmsSendErrorException
	 */
	public abstract void send(String content, String mobileNumber) throws SmsSendErrorException;
	
	public abstract void saveSmsInfo(SmsInfoBase smsInfo) throws SmsSendErrorException;
	
	public abstract void sendSMS(UserMessageTemplateBase umt, Map<String, String> params,String mobileNumber);
}
